package com.nuanshui.heatedloan.fund.model;

import com.nuanshui.framework.lang.MoneyUtil;
import com.nuanshui.heatedloan.dal.BaseEntityImpl;

import java.util.Date;



/**
 * 账单Model
 * @author Junyan2015
 * @date 2016年2月16日 上午10:49:29
 */
public class UserAccountBill extends BaseEntityImpl {

	/**
	 * 
	 */
	private static final long serialVersionUID = 175059472748905922L;
	private String name;  // 交易名称
	private String des;   // 交易备注
	private Long money;  // 金额
	private String userId;  //用户ID
	private Integer status;  // 交易状态 @see AccountBillStatus

	private Integer subStatus;  // 交易子状态
	private String platform; // 支付平台
	private String payMethod;//支付方式
	private Date checkTime;  //审核时间
	private String dealNum; // 交易编号
	private String accountNum; //支付账号
	private String bizId;  // 业务号
	private String actionName; // 动作名称
	private String type; // 第一分类  @see  AccountBillType 第一分类是大类, 如 购买, 充值, 提现, 等等
	private Integer subType; // 第二分类 @see AccountBillSubType 第二分类是细分, 如
	private String billBizType;
	
	private Long  jadeCurrency;//使用的虚拟币
	
	//管理员可以显示的信息
	private String userNick;
	private String userName;
		
	//余额支付需要显示
	private Integer dealPrice; //成交价
	private String orderAddress; //收货地址
	private String phoneNumber;//联系电话
	private String orderNumber;//订单编号
	
	
	
	
	
	public String getBillBizType() {
		return billBizType;
	}
	public void setBillBizType(String billBizType) {
		this.billBizType = billBizType;
	}
	public Long getJadeCurrency() {
		if(jadeCurrency == null) return 0l;
		return jadeCurrency;
	}
	public void setJadeCurrency(Long jadeCurrency) {
		this.jadeCurrency = jadeCurrency;
	}

	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSubStatus() {
		return subStatus;
	}

	public void setSubStatus(Integer subStatus) {
		this.subStatus = subStatus;
	}

	public String getPlatform() {
		return platform;
	}
	public void setPlatform(String platform) {
		this.platform = platform;
	}
	public Date getCheckTime() {
		return checkTime;
	}
	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}
	public String getDealNum() {
		return dealNum;
	}
	public void setDealNum(String dealNum) {
		this.dealNum = dealNum;
	}
	public String getAccountNum() {
		return accountNum;
	}
	public void setAccountNum(String accountNum) {
		this.accountNum = accountNum;
	}
	public String getBizId() {
		return bizId;
	}
	public void setBizId(String bizId) {
		this.bizId = bizId;
	}
	
	public Long getMoney() {
		return money;
	}
	public void setMoney(Long money) {
		this.money = money;
	}
	public String getActionName() {
		return actionName;
	}
	public void setActionName(String actionName) {
		this.actionName = actionName;
	}
	
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public Integer getSubType() {
		return subType;
	}
	public void setSubType(Integer subType) {
		this.subType = subType;
	}
	public String getPayMethod() {
		return payMethod;
	}
	public void setPayMethod(String payMethod) {
		this.payMethod = payMethod;
	}
	public String getUserNick() {
		return userNick;
	}
	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Integer getDealPrice() {
		return dealPrice;
	}
	public void setDealPrice(Integer dealPrice) {
		this.dealPrice = dealPrice;
	}
	public String getOrderAddress() {
		return orderAddress;
	}
	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	
	public String getShowMoney() {
		return MoneyUtil.toDoubleString(money);
	}
	
	public Long getShowJadeCurrency() {
		if(this.jadeCurrency == null) return 0l;
		
		return jadeCurrency/100;
	}
	

}
